package server.main.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import server.main.config.cache.MybatisPlusRedisCache;
import server.main.pojo.Doctor;

/**
 * @auther MingHsZzz
 * @Date 2022/10/10  14:11
 * @project main
 * @description
 */


@Mapper
//@CacheNamespace(implementation = MybatisPlusRedisCache.class)
public interface DoctorMapper extends BaseMapper<Doctor> {


    @Select("SELECT * FROM doctor WHERE jobnum = #{jobnum}")
    public Doctor getDoctor(String jobnum);


    @Delete("DELETE FROM doctor WHERE jobnum = #{jobnum}")
    public void deleteDoctor(String jobnum);


}
